package com.hwadee.job.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hwadee.job.entity.Recruit;

public interface RecruitMapper {
    int deleteByPrimaryKey(Integer reId);

    int insert(Recruit record);

    int insertSelective(Recruit record);

    Recruit selectByPrimaryKey(Integer reId);

    int updateByPrimaryKeySelective(Recruit record);

    int updateByPrimaryKey(Recruit record);
    
    List<Recruit> selectRectruit();
    
    List<Recruit> findByName(String rename);
    
    List<Recruit> selectRecruit();
    
    /**
          * 分页
     * @param offset
     * @param size
     * @return
     */
    List<Recruit> findPage(@Param("offset") int offset, @Param("size") int size, @Param("rename") String rename);
    List<Recruit> findPage1(@Param("offset") int offset, @Param("size") int size);

	int findCount();
	
	/**
	 * 关键字搜索
	 * @return
	 */
	List<Recruit> selectKeyWord( @Param("reName") String reName, @Param("reCompanyName") String reCompanyName,@Param("rePositiontype") String rePositiontype,@Param("reDate") String reDate,
			@Param("reWorkingplace") String reWorkingplace,@Param("reMoney") String reMoney);
	
	/**
	 * 关键字搜索
	 * @return
	 */
	List<Recruit> selectKeyWord1( @Param("rePositiontype") String rePositiontype,@Param("reEdurequire") String reEdurequire,
			@Param("reWorkingplace") String reWorkingplace,@Param("reMoney") String reMoney,@Param("offset") Integer offset, @Param("size") Integer size);
	
	int reCount( @Param("rePositiontype") String rePositiontype,@Param("reEdurequire") String reEdurequire,
			@Param("reWorkingplace") String reWorkingplace,@Param("reMoney") String reMoney);
	
}